﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebApplication1
{
    public partial class Home : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt =new DataTable();
                SQLHelper.getRootTags(out dt);
                ddlType.Items.Add(new ListItem("全部","0"));
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    ddlType.Items.Add(new ListItem(dt.Rows[i]["TagName"].ToString(), dt.Rows[i]["Id"].ToString()));
                }
            }
        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {

        }
    }
}